﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MvcEngine.Core.Extensions
{
    public static class IntegerExtensions
    {
        public static string GetPaging(this int pageCount, Func<int, string> expression) 
        {
            string result = string.Empty;
            for (int i = 0; i < pageCount; i++)
			{
                result += expression(i + 1);
			}
            return result;
        } 
    }
}
